home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / game / patch / WHDIGamesN-R.lzh / games / Ork.lha / OrkHD / Install-Game < prev    next >
Text File  |  1998-10-26  |  3KB  |  117 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #readme "ork")            ; %shd.readme
  4. ;----------------------------
  5.  
  6. ;try to figure out a place where the user usually installs his games
  7. (if (exists "Games:" (noreq) )
  8.     (set @default-dest "Games:")
  9.     (if (exists "SYS:Games" (noreq) )
  10.         (set @default-dest "SYS:Games")
  11.         (if (exists "Work:Games" (noreq) )
  12.             (set @default-dest "Work:Games")
  13.             (if (exists "JEUX:" (noreq) )
  14.                (set @default-dest "JEUX:")
  15.                (set @default-dest "SYS:")
  16.             )
  17.         )
  18.     )
  19. )
  20.  
  21. (message "\n\n\nThis loader requires either JST or WHDLoad (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST and WHDLoad are available from aminet (game/patch)")
  22.  
  23. (set @default-dest
  24. (askdir
  25.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  26.     (help @askdir-help)
  27.     (default @default-dest)
  28.     (disk)
  29. )
  30. )
  31. (set #dest (tackon @default-dest @app-name))
  32. (set #CI_unit
  33.     (askchoice
  34.         (prompt "From which disk unit do you want\nto install the game")
  35.         (help    @askoptions-help)
  36.         (choices
  37.            "DF0:"
  38.            "DF1:"
  39.            "DF2:"
  40.            "DF3:"
  41.         )
  42.     )
  43. )
  44.  
  45. (set #CI_drive ("DF%ld:" #CI_unit))
  46.  
  47. (set #Game_Ver
  48.     (askchoice
  49.         (prompt "Which version of the loader do you wish to install")
  50.         (help    @askoptions-help)
  51.         (choices
  52.            "JST"
  53.            "WHDLoad"
  54.         )
  55.     )
  56. )
  57.  
  58. (makedir #dest
  59.     (help @makedir-help)
  60.     (infos)
  61. )
  62.  
  63. ;----------------------------
  64. (if (= #Game_Ver 0)
  65. (copyfiles
  66.   (help @copyfiles-help)
  67.   (source ("JHD.inf"))
  68.   (newname ("%sHD.info" @app-name ))
  69.   (dest #dest)
  70. ))
  71. (if (= #Game_Ver 0)
  72. (copyfiles
  73.   (help @copyfiles-help)
  74.   (source ("HD"))
  75.   (newname ("%sHD" @app-name ))
  76.   (dest #dest)
  77. ))
  78. (if (= #Game_Ver 1)
  79. (copyfiles
  80.   (help @copyfiles-help)
  81.   (source ("WHD.inf"))
  82.   (newname ("%sHD.info" @app-name ))
  83.   (dest #dest)
  84. ))
  85. (if (= #Game_Ver 1)
  86. (copyfiles
  87.   (help @copyfiles-help)
  88.   (source ("HD.slave" ))
  89.   (newname ("%sHD.slave" @app-name ))
  90.   (dest #dest)
  91. ))
  92. (copyfiles
  93.   (help @copyfiles-help)
  94.   (source ("%shd.readme" #readme))
  95.   (dest #dest)
  96. )
  97. (copyfiles
  98.   (help @copyfiles-help)
  99.   (source ("%shd.readme.info" #readme))
  100.   (dest #dest)
  101. )
  102. (message ("\nInsert %s Disk 1 into drive %s !" @app-name #CI_drive))
  103.     (if
  104.         (= 0 (run ("wjs2file %ld \"%s/disk.1\" 2 34 >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest)))
  105.         ("")
  106.         (abort "\"wjs2file\" must be in your PATH !")
  107.     )
  108. (message ("\nInsert %s Disk 2 into drive %s !" @app-name #CI_drive))
  109.     (if
  110.         (= 0 (run ("wjs2file %ld \"%s/disk.2\" 0 155 >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest)))
  111.         ("")
  112.         (abort "\"wjs2file\" must be in your PATH !")
  113.     )
  114.  
  115. (exit)
  116.  
  117.